home *** CD-ROM | disk | FTP | other *** search
/ Software Vault: The Diamond Collection / The Diamond Collection (Software Vault)(Digital Impact).ISO / cdr49 / dispwet1.zip / DISPWET.WCC < prev    next >
Text File  |  1995-02-17  |  5KB  |  236 lines

  1. REM WCcode module for downloading individual weather maps or packages.
  2. REM Written by Mark Davis, Crystal Wind Communications, Inc in Jan 1995
  3. REM Released as SHARE-WITH-ME-WARE, if you like it, use it, share
  4. REM something you've done with me. Fido 1:3653/66 BBS 904-564-0101
  5. REM Enjoy...
  6.  
  7.  
  8. dim GRmode as integer
  9. dim REQ as string
  10.  
  11. SUB DispInst
  12.    CLS
  13.    if not DisplayFile("weathins") then
  14.       Print "Instructions are not available at this time."
  15.       Print "Please Notify Sysop."
  16.       Delay 1
  17.       waitenter
  18.    end if
  19. End Sub
  20.  
  21. Function Grafmode (testGRmode as Integer) as Integer
  22.     if (RipDetected and RipEnabled) then
  23.        testGRmode = 2
  24.        GOTO FINI
  25.     end if
  26.     if (AnsiDetected and AnsiEnabled) then
  27.        testGRmode = 1
  28.        GOTO FINI
  29.     end if
  30.        TestGRmode = 0
  31. FINI:
  32. End Function
  33.  
  34. SUB DispMenu
  35. CLS
  36.     If not DisplayFile("Weathmen") then
  37.        CLS
  38.        Print "Missing Menu"
  39.        Print "Please Notify Sysop"
  40.        Delay 1
  41.        Print "Exiting Program"
  42.        END
  43.     end if
  44. End Sub
  45.  
  46. Sub Sendit (file2send as string)
  47. Dim tchoice as string*1
  48. Dim thisone as string
  49. CLS
  50. Z1:
  51. Print : Print : Print
  52. Print "[G]IF or [P]CX format, or [Q] to Quit";
  53. Input tchoice
  54. If ucase(tchoice) = "G" then
  55.    thisone = "D:\WEATHER\SINGLES\" + file2send + ".GIF"
  56. end if
  57. If ucase(tchoice) = "P" then
  58.    thisone = "D:\WEATHER\SINGLES\" + file2send + ".PCX"
  59. end if
  60. If ucase(tchoice) = "Q" then
  61.    exit sub
  62. end if
  63. sendfile(thisone)
  64. end sub
  65.  
  66. Sub DispSubmenu1
  67. T1:
  68. Dim Inchoice1 as String*1
  69. RES1:
  70. Inchoice1 = ""
  71. CLS
  72.     If not DisplayFile("Individ") then
  73.        CLS
  74.        Print "Missing Menu"
  75.        Print "Please Notify Sysop"
  76.        Delay 1
  77.        Print "Exiting menu"
  78.        exit sub
  79.     End If
  80.     Print
  81.     Print "Please Enter your choice >> ";
  82.     input Inchoice1
  83.     If Ucase(Inchoice1) = "M" then
  84.           gotomenu("MAIN MENU")
  85.           END
  86.     end if
  87.     If Ucase(Inchoice1) = "W" then
  88.           gotomenu("WEATHER SERVICES MENU")
  89.           END
  90.     end if
  91.     If Ucase(Inchoice1) = "S" then
  92.           gotomenu("SERVICES & GAMES MENU")
  93.           END
  94.     end if
  95.     If Ucase(Inchoice1) = "P" then
  96.           REQ = "2"
  97.           exit sub
  98.     end if
  99.     Select Case Ucase(Inchoice1)
  100.          Case "0"
  101.             Sendit("F24H")
  102.          Case "1"
  103.             Sendit("1EWX")
  104.          Case "2"
  105.             Sendit("2EWX")
  106.          Case "3"
  107.             Sendit("SNUS")
  108.          Case "4"
  109.             Sendit("P2US")
  110.          Case "5"
  111.             Sendit("HTM1")
  112.          Case "6"
  113.             Sendit("HTM2")
  114.          Case "7"
  115.             Sendit("LTM1")
  116.          Case "8"
  117.             Sendit("LTM2")
  118.          Case "9"
  119.             Sendit("RUS_")
  120.          Case "A"
  121.             Sendit("RNC_")
  122.          Case "B"
  123.             Sendit("RNE_")
  124.          Case "C"
  125.             Sendit("RNW_")
  126.          Case "D"
  127.             Sendit("RSC_")
  128.          Case "E"
  129.             Sendit("RSE_")
  130.          Case "F"
  131.             Sendit("RSW_")
  132.          Case "G"
  133.             Sendit("SE00")
  134.          Case "H"
  135.             Sendit("SE01")
  136.          Case "I"
  137.             Sendit("SU00")
  138.          Case "J"
  139.             Sendit("SU01")
  140.     End Select
  141.     goto T1
  142. End Sub
  143.  
  144. Sub DispSubmenu2
  145. T2:
  146. Dim Inchoice2 as String*1
  147. RES2:
  148. Inchoice2 = ""
  149. CLS
  150.     If not DisplayFile("Package") then
  151.        CLS
  152.        Print "Missing Menu"
  153.        Print "Please Notify Sysop"
  154.        Delay 1
  155.        Print "Exiting menu"
  156.        exit sub
  157.     End If
  158.     Print
  159.     Print "Please Enter your choice >> ";
  160.     input Inchoice2
  161.     If Ucase(Inchoice2) = "M" then
  162.           gotomenu("MAIN MENU")
  163.           END
  164.     end if
  165.     If Ucase(Inchoice2) = "W" then
  166.           gotomenu("WEATHER SERVICES MENU")
  167.           END
  168.     end if
  169.     If Ucase(Inchoice2) = "S" then
  170.           gotomenu("SERVICES & GAMES MENU")
  171.           END
  172.     end if
  173.     If Ucase(Inchoice2) = "I" then
  174.           REQ = "1"
  175.           exit sub
  176.     end if
  177.     Select Case Ucase(Inchoice2)
  178.          Case "1"
  179.             Sendfile("d:\weather\weathmap.zip")
  180.          Case "2"
  181.             Sendfile("d:\weather\radar.zip")
  182.          Case "3"
  183.             Sendfile("d:\weather\satelite.zip")
  184.          Case "4"
  185.             Sendfile("d:\weather\singles\show.exe")
  186. End Select
  187. goto T2
  188. End Sub
  189.  
  190. Function Prompter(request as string) as string
  191. dim askline(2) as string*78
  192. if GRmode=0 then
  193.    askline(1)="Please enter your command request, [I] for instructions,"
  194.    askline(2)="or [Q] to quit  >>"
  195. end if
  196. if GRmode=1 then
  197.    askline(1)="@0F@Please enter your command request, [@0A@I@0F@] for instructions,"
  198.    askline(2)="@0F@or [@0A@Q@0F@] to quit  @0A@>>@0F@"
  199. end if
  200. if GRmode=2 then
  201.    askline(1)="@0F@Please enter your command request,[@0A@^T1I@0F@] for instructions,"
  202.    askline(2)="@0F@or [@0A@^T1Q@0F@] to quit  @0A@>>@0F@"
  203. end if
  204. print askline(1)
  205. print askline(2);
  206. input request
  207.  
  208. End Function
  209.  
  210. PROGRAM:
  211. CLS
  212. GRAFMODE(grmode)
  213. TOP:
  214. DISPMENU
  215. PROMPTER(REQ)
  216. Select case REQ
  217.     Case "Q","q"
  218.        END
  219.     Case "I","i"
  220.        DispInst
  221.        GOTO TOP
  222.     Case "1"
  223. RERUN1:
  224.        DispSubmenu1
  225.        If REQ = "2" then
  226.           goto RERUN2
  227.        end if
  228.     Case "2"
  229. RERUN2:
  230.        DispSubmenu2
  231.        If REQ = "1" then
  232.           goto RERUN1
  233.        end if
  234. End Select
  235. GOTO TOP
  236.